<?php $view->extend('::base.html.php') ?>
<?php //var_dump($guides); ?>
<?php 
	foreach ($guides as $guide):
?>
<h3>
	<a href="<?php echo $view['router']->generate('guides_edit', array('guideId' => $guide->getId())); ?>"><?php echo $guide->getTitle(); ?></a>
	<a href="<?php echo $view['router']->generate('guides_delete', array('guideId' => $guide->getId())); ?>">&times;</a>
</h3>
<div>
	<?php 
	foreach ($guide->getChapters() as $chapter):
	?>
	<h5><?php echo $chapter->getTitle(); ?></h5>
	<div>
		<?php echo $chapter->getParsedText(); ?>
	</div>
	<?php
	endforeach;
	?>
</div>
<?php endforeach; ?>

